[.feemcube: Extract or replace parts of FEEM cubes
Description
Extract or replace single intensities, vectors of them, whole FEEM
spectra or even data cubes or their parts from a FEEM cube.
Usage
# S3 method for feemcube
[(x, i, j, k, drop = TRUE)
# S3 method for feemcube
[(x, i, j, k) <- value
Value
For [: If choosing multiple values along each axis or
drop is FALSE, a FEEM cube object. If choosing only one
sample but multiple wavelengths, a FEEM object. Otherwise, a named
numeric matrix or vector, depending on the dimensions chosen.
For [<-: a FEEM cube object.
Arguments
x
A FEEM cube object.
i, j, k
Row, column and sample indices, respectively. As usual, may be
integer, logical or character vectors. Omitting a parameter results
in choosing the whole axis.
drop
Coerce result to the lowest possible dimension (dropping the
feemcube class).
value
An array-like object to assign values from. When assigning from
FEEM or FEEM cube objects, wavelengths are required to match and
warnings are issued if scale factors don't match. Use vector
subsetting (zero or one argument inside the brackets) to disable the
check.